package com.woniu.project.core.exception;



/**
 *最顶层的异常处理结构
 *
 * @Author: Klaus
 * @Date: 2020/9/27 19:00
 */
public class ProjectException extends RuntimeException{
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public ProjectException(Integer code, String msg){
        super(msg);
        this.code = code;
    }

    public ProjectException(ProjectExceptionCode projectExceptionCode){
        super(projectExceptionCode.getMsg());
        this.code = projectExceptionCode.getCode();
    }

    public ProjectException(){

    }

}
